package com.superm.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 采购申请单
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Purchase {

    //采购单号
    private String purCode;

    //进货总数量
    private Integer goodstotalCount;

    //订单金额
    private Double totalPrice;

    //审批状态
    private Integer purchaseState;

    //供应商编号
    private Supplier supplier;

    //申请人
    private Emp emp;

    //支付状态
    private String payState;

    //入库仓库
    private RepostoryType repostoryType;

    //进货日期
    private String createDate;

    //商品共需容量
    private Double capacity;

    //采购单类型
    private String purchaseType;

    public Purchase(String purCode, RepostoryType repostoryType) {
        this.purCode = purCode;
        this.repostoryType = repostoryType;
    }

    private String remarkes;

    public Purchase(String purCode) {
        this.purCode = purCode;
    }
}
